import { request } from '@/utils/request'

export function page (params) {
  return request({
    url: '/api/book/page',
    params
  })
}

export function create (data) {
  return request({
    url: '/api/book/create',
    method: 'post',
    data
  })
}

export function update (data) {
  return request({
    url: '/api/book/update',
    method: 'post',
    data
  })
}

export function bookDelete (data) {
  return request({
    url: '/api/book/delete',
    method: 'post',
    data
  })
}

export function getUserInfoByBook(data) {
  return request({
    url: '/api/book/getUserInfoByBook',
    method: 'post',
    data
  })
}